---
section: "downloads"
title: "Git - Downloading Package"
aliases:
- /download/mac
---

<div id="main">
  <h1>Download for macOS</h1>

  <p>There are several options for installing Git on macOS. Note that
  any non-source distributions are provided by third parties, and may
  not be up to date with the latest source release.</p>

  <p><b>Choose one of the following options for installing Git on macOS:</b></p>

  <h3>Homebrew</h3>
  <p>Install <a href="https://brew.sh/">homebrew</a> if you don't already have it, then:<br>
  <code>$ brew install git</code></p>

  <h3>MacPorts</h3>
  <p>Install <a href="https://www.macports.org">MacPorts</a> if you don't already have it, then:<br>
  <code>$ sudo port install git</code></p>

  <h3>Xcode</h3>
  <p>Apple ships a binary package of Git with <a href="https://developer.apple.com/xcode/">Xcode</a>.</p>

  <h3>Binary installer</h3>
  <p>Tim Harper provides an <a href="https://sourceforge.net/projects/git-osx-installer/">installer</a>
  for Git. The latest version is <a href="{{< site-param macos_installer.url >}}">{{< site-param macos_installer.version >}}</a>,
  which was released <span id="relative-release-date"></span>on <span id="auto-download-date">{{< site-param macos_installer.release_date >}}</span>.

  <h3>Building from Source</h3>
  <p>If you prefer to build from source, you can find tarballs
  <a href="https://www.kernel.org/pub/software/scm/git/">on kernel.org</a>.
  The latest version is
  <a href="https://www.kernel.org/pub/software/scm/git/git-{{< site-param latest_version >}}.tar.gz"%>{{< site-param latest_version >}}</a>.

  <h3>Installing git-gui</h3>
  <p>If you would like to install <a href="https://git-scm.com/docs/git-gui/">git-gui</a> and <a href="https://git-scm.com/docs/gitk/">gitk</a>,
  git's commit GUI and interactive history browser, you can do so using <a href="https://brew.sh/">homebrew</a><br>

  <code>$ brew install git-gui</code></p>

</div>
